package cho114366.basic;

public class J14_MobilePhon {
	public static void main(String[] args) {
	

	
	

	}
class J14_PhonBase{
	String send;
	String recieve;
	public J14_PhonBase(String send, String recieve) {
		super();
		this.send = send;
		this.recieve = recieve;
	}
	public String getSend() {
		return send;
	}
	public void setSend(String send) {
		this.send = send;
	}
	public String getRecieve() {
		return recieve;
	}
	public void setRecieve(String recieve) {
		this.recieve = recieve;
	}
	@Override
	public String toString() {
		return "J14_PhonBase [send=" + send + ", recieve=" + recieve + "]";
	}
	
	
	
	
	
}
class J14_MobilePhone extends J14_PhonBase{
	String air;
	String batt;
	public J14_MobilePhone(String send, String recieve, String air, String batt) {
		super(send, recieve);
		this.air = air;
		this.batt = batt;
	}
	public String getAir() {
		return air;
	}
	public void setAir(String air) {
		this.air = air;
	}
	public String getBatt() {
		return batt;
	}
	public void setBatt(String batt) {
		this.batt = batt;
	}
	@Override
	public String toString() {
		return "J14_MobilePhone [air=" + air + ", batt=" + batt + "]";
	}
	
	
}
class J14_SmartPhone extends J14_MobilePhon{
	String music;
	String musicPlsy;
	public J14_SmartPhone(String music, String musicPlsy) {
		super();
		this.music = music;
		this.musicPlsy = musicPlsy;
	}
	public String getMusic() {
		return music;
	}
	public void setMusic(String music) {
		this.music = music;
	}
	public String getMusicPlsy() {
		return musicPlsy;
	}
	public void setMusicPlsy(String musicPlsy) {
		this.musicPlsy = musicPlsy;
	}
	@Override
	public String toString() {
		return "J14_SmartPhone [music=" + music + ", musicPlsy=" + musicPlsy
				+ "]";
	}
	
}
}

